<style type="text/css">
<?php if($this->subject->president_image_id):?>	
	#thumb_flag_country, #thumb_president_image{
		display: none;
	}
<?php endif;?>
	#flag_president_image span{
		display: block;
		background-position: top center;
		float: left;
		width: 85px;
		height: 100px;
		background-color: #eee;
		background-repeat: no-repeat;	
	}
	#profile_photo{
		background-color: #eee;
	}
	ul.image_below{
		clear:both;
		width: 100%;
		text-align: center;
		padding-left: 50px;
	}
	ul.image_below > li{
		padding-top: 5px;
		float: left;
		margin-right: 5px;
	}
	ul.image_below img{
		width: 30px;
		cursor: pointer;
	}
	ul.image_below img.active{
		padding: 2px;
		background: #35a7e2;
	}
	.nation_anthem{
		clear: left;
		padding-top: 10px;
	}
</style>
<h3 style="text-align:center">
<?php echo $this->subject->getTitle()?>
 </h3>
 <?php if($this->subject->president_name != ''):?>
 <span style="margin-bottom: 5px;"><?php echo $this->translate('President');?> : <b><?php echo $this->subject->president_name;?></b></span>
 <?php endif;?>
<div id='profile_photo' style="text-align: center;">
<?php if($this->subject->president_image_id):?>	
  <div class="switch_image" id="flag_president_image">
	<span  style="margin-right: 1px;background-image: url(<?php echo $this->subject->getPhotoUrl($this->subject->flag_photo_id, 'thumb.normal');?>)"></span>
	<span style="background-image: url(<?php echo $this->subject->getPhotoUrl($this->subject->president_image_id, 'thumb.normal');?>)"></span>
  </div>	
  <img id="thumb_president_image" class="thumb_profile item_photo_user switch_image" src="<?php echo $this->subject->getPhotoUrl($this->subject->president_image_id);?>">
<?php endif;?> 
 <img onclick="popup_box();" id="thumb_flag_country" class="thumb_profile item_photo_user switch_image" src="<?php echo $this->subject->getPhotoUrl($this->subject->flag_photo_id);?>">
  
</div>

<?php if($this->subject->president_image_id):?>
<ul class="image_below">
	<li>
		<img title="<?php echo $this->translate("%s's flag", $this->subject->getTitle());?>" onclick="change_image(this, 'thumb_flag_country')" src="<?php echo $this->subject->getPhotoUrl($this->subject->flag_photo_id, 'thumb.icon');?>">
	</li>
	<li>
		<img title="<?php echo $this->translate("%s's president:", $this->subject->getTitle()) . ' ' .$this->subject->president_name;?>" onclick="change_image(this, 'thumb_president_image')" src="<?php echo $this->subject->getPhotoUrl($this->subject->president_image_id, 'thumb.icon');?>">
	</li>
</ul>
<?php endif;?>

<div class="nation_anthem">
  <h5><?php echo $this->translate('National Anthem');//echo $this->subject->national_anthem_title?></h5>	
  <embed  type='audio/mpeg' HEIGHT="30" WIDTH="180" AUTOSTART="false"  src="<?php echo $this->subject->getAnthemPath();?>">
</div>
<script type="text/javascript">
function change_image(seft, id){
	$$('.switch_image').hide();
	$(id).show();
	$$('.image_below img').removeClass('active');
	$(seft).addClass('active');
}
function popup_box(){
	Smoothbox.open('http://localhost/dragon/Customer/BA/Country/countries/view/id/12');
}
</script>